<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" data-rule="required" class="form-control" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>-->

<!--    开始时间-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Stime')}:</label>
        <div style="float: left;margin: 5px 0 0 15px;height: 31px">
            <input
                    id="c-stime-chose"
                    name="row[stime]"
                    type="radio"
                    {neq name="$row.stime" value="2020-02-09"}checked{/neq}
            /> {:__('Limited')}
        </div>

        <div class="col-xs-12 col-sm-6" {eq name="$row.stime" value="2020-02-09"}style="display:none"{/eq}>
            <input id="c-stime"
                   class="form-control datetimepicker"
                   data-date-format="YYYY-MM-DD"
                   data-use-current="true"
                   name="row[stime]"
                   type="text"
                   {neq name="$row.stime" value="2020-02-09"}value="{:$row.stime?date($row.stime):''}"{/neq}
            >
        </div>

        <div style="float: left;margin: 5px 0 0 15px"">
            <input id="c-stime-cancel"
                   name="row[stime]"
                   type="radio"
                   value="2020-02-09"
                   {eq name="$row.stime" value="2020-02-09"}checked{/eq}
            /> {:__('Unlimited')}
        </div>
    </div>

<!--    结束时间-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Etime')}:</label>
        <div style="float: left;margin: 5px 0 0 15px;height: 31px">
            <input
                    id="c-etime-chose"
                    name="row[etime]"
                    type="radio"
                    {neq name="$row.etime" value="2020-02-09"}checked{/neq}
            /> {:__('Limited')}
        </div>

        <div class="col-xs-12 col-sm-6" {eq name="$row.etime" value="2020-02-09"}style="display:none"{/eq}>
            <input id="c-etime"
                   class="form-control datetimepicker"
                   data-date-format="YYYY-MM-DD"
                   data-use-current="true"
                   name="row[etime]"
                   type="text"
                   {neq name="$row.etime" value="2020-02-09"}value="{:$row.etime?date($row.etime):''}"{/neq}
            >
        </div>

        <div style="float: left;margin: 5px 0 0 15px">
            <input id="c-etime-cancel"
                   name="row[etime]"
                   type="radio"
                   value="2020-02-09"
                   {eq name="$row.etime" value="2020-02-09"}checked{/eq}
            /> {:__('Unlimited')}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Holder')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-holder" class="form-control" name="row[holder]" type="text" value="{$row.holder|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Account')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-account" class="form-control" name="row[account]" type="text" value="{$row.account|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bank')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bank" class="form-control" name="row[bank]" type="text" value="{$row.bank|htmlentities}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
